/**
 * 
 */
package transactions;

import java.util.concurrent.BlockingQueue;

/**
 * @author blackdevil
 *
 */
public class TransactionManagerSharedData {
	private static TransactionManagerSharedData instance = null;	
	//TODO: Attenzionare queste due code ... si devono incapsulare con i metodi che devono essere controllati per evitare concorrenza
	public static BlockingQueue<AbstractTransaction> transactions;
	public static BlockingQueue<IResourceManager> rm;
	
	private TransactionManagerSharedData() {
		
	}
	
	public static TransactionManagerSharedData getInstance()
	{
		if (instance == null)
		{
			instance = new TransactionManagerSharedData();
		}
		return instance;
	}
}
